<template>
  <div class="recommend">
    <div class="recommend-item" v-for="(item, index) in recommend" :key="index">
      <a href="item.link">
        <img :src="item.image" alt="" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
  <!-- <div>
    {{recommend}}
  </div> -->
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommend: {
      type:Array,
      default:[]
    }
  },
};
</script>

<style scoped>
.recommend{
  display: flex;
}
.recommend-item{
  flex:1
}
.recommend-item img{
  width: 60px;
}
</style>